package com.example.myapp.database;

import android.content.ContentValues;
import com.example.myapp.bill.Bill;

public class BillContentValuesBuilder {
    public static ContentValues createContentValuesByBill(Bill bill) {
        ContentValues newListValues = new ContentValues();

        newListValues.put("nazwa", bill.getName());
        newListValues.put("data", bill.getDate());
        newListValues.put("kwota", bill.getAmount());
        newListValues.put("zaplacony", String.valueOf(bill.getIfPaid()));
        return newListValues;
    }
}